package com.managerProvider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * The interface User mapper.
 *
 * @author overlook
 * @date 2022 -04-16 20:12:00
 */
@Mapper
@Component
public interface UserMapper extends BaseMapper<User> {

    /**
     * Find all user list.
     *
     * @param user the user
     * @return the list
     */
    List<User> findAllUser(User user);


    /**
     * Delete by id int.
     *
     * @param id the id
     * @return the int
     */
    int deleteById(String id);

    /**
     * Select one user list.
     *
     * @param user the user
     * @return the list
     */
    List<User> selectOneUser(User user);


    /**
     * Select one user role power list.
     *
     * @param user the user
     * @return the list
     */
    List<User> selectOneUserRolePower(User user);

}
